From 82e2e63c607c0fa29cbf6c117f4905358971e039 Mon Sep 17 00:00:00 2001 From: "cl349@firebug.cl.cam.ac.uk" Date: Mon, 29 Aug 2005 13:58:46 +0000 Subject: [PATCH] Fix "bogus" check by moving it inside the length check. Signed-off-by: Ryan Harper Signed-off-by: Christian Limpach --- tools/python/xen/xm/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/python/xen/xm/main.py b/tools/python/xen/xm/main.py index 5c8e4b01ff..92782d2ae9 100644 --- a/tools/python/xen/xm/main.py +++ b/tools/python/xen/xm/main.py @@ -715,9 +715,9 @@ def main(argv=sys.argv): err("Most commands need root access. Please try again as root") sys.exit(1) except XendError, ex: - if args[0] == "bogus": - args.remove("bogus") if len(args) > 0: + if args[0] == "bogus": + args.remove("bogus") handle_xend_error(argv[1], args[0], ex) else: print "Unexpected error:", sys.exc_info()[0] -- 2.30.2